<template>
  <div>
    <h2 @click="showMsg">祖父的名字：{{name}}</h2>
    <h2>祖父的年龄：{{age}}</h2>
  </div>
</template>

<script>
    export default {
        name: "MyGrandpa",
      data(){
          return{
            name:"李明",
            age:78
          }
      }
    }
</script>

<style scoped>

</style>
